{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}/Users/AliceZhang/Dropbox/Research_Columbia/Renewables Voting (Urpelainen Zhang)/JOP/UZ_JOP2021_Replication/Analysis/logSTATA/006_analysis_turnout.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res} 6 Nov 2021, 20:34:03
{txt}
{com}. 
. 
. *******************************************************************************
. /*                                        URPELAINEN & ZHANG 2021                                                */
. *******************************************************************************
. 
. /* 
> 
> File Name:      006_analysis_turnout.do
> 
> By:                             Alice Tianbo Zhang (alice.tianbo.zhang@gmail.com)
> 
> Last Edited:    10/13/2021
> 
> Purpose:                
> 
> Data Used:      election_turnout_district_panel.dta
>                                 
> 
> Program Used:   - reghdfe -
> 
> */
. 
. 
. *******************************************************************************
. /*                              TURNOUT ANALYSIS BY PARTY ID                                 */
. *******************************************************************************
. cd "$rootDir/$dataDir/Final"
{res}/Users/AliceZhang/Dropbox/Research_Columbia/Renewables Voting (Urpelainen Zhang)/JOP/UZ_JOP2021_Replication/Data/Final
{txt}
{com}. use election_turnout_district_panel.dta, clear
{txt}
{com}. 
. ** Create instrument and fixed effects
. gen t = year - 2004
{txt}
{com}. gen inter = t * mean_wp
{txt}
{com}. 
. egen stateyear_fixed = group(state year)
{txt}
{com}. egen state_fixed = group(state)
{txt}
{com}. egen district_fixed = group(state district)
{txt}
{com}. 
. gen cum_lncapacity_turbine = log(cum_capacity_turbine + 1)
{txt}
{com}. gen cum_lncount_turbine = log(cum_count_turbine +1 )
{txt}
{com}. 
. local outcome dem_turnout rep_turnout ind_turnout // outcome variable 
{txt}
{com}. local endogenous cum_lncapacity_turbine cum_lncount_turbine // endogenous variable
{txt}
{com}. local instrument inter // instrument
{txt}
{com}. 
. foreach y in `outcome' {c -(}
{txt}  2{com}.         // Create outcome variable label for storing estimates
.         local y_name = substr("`y'", 1, 3)
{txt}  3{com}.         
.         foreach x in `endogenous' {c -(}
{txt}  4{com}.                         // Create endogenous variable label for storing estimates
.                         tokenize "`x'", parse("_")
{txt}  5{com}.                         local x_name "`3'"
{txt}  6{com}.                         di "`x_name'"
{txt}  7{com}.                         
.                         // Run IV regression
.                         reghdfe `y' (`x' = `instrument'), absorb(state_fixed year) ffirst stages(first ols reduced) vce(cluster district_fixed) old
{txt}  8{com}.                         
.                         // Store IV, first stage, OLS, reduced form estimates
.                         estimates store `y_name'_`x_name'_iv
{txt}  9{com}.                         estimates restore reghdfe_first1
{txt} 10{com}.                         estimates store `y_name'_`x_name'_first
{txt} 11{com}.                         estimates restore reghdfe_ols
{txt} 12{com}.                         estimates store `y_name'_`x_name'_ols
{txt} 13{com}.                         estimates restore reghdfe_reduced
{txt} 14{com}.                         estimates store `y_name'_`x_name'_reduced
{txt} 15{com}.                 {c )-}
{txt} 16{com}. {c )-}
lncapacity
{err}(running historical version of reghdfe)
{res}{txt}(dropped 3 singleton observations)
{res}{txt}(converged in 4 iterations)
{res}
{txt}{inp}{title:Stage: first - cum_lncapacity_turbine}

{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}       145
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}    126{txt}){col 67}= {res}      4.14
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0440
{txt}{col 51}R-squared{col 67}= {res}    0.2546
{txt}{col 51}Adj R-squared{col 67}= {res}    0.1273
{txt}{col 51}Within R-sq.{col 67}= {res}    0.1054
{txt}{col 1}Number of clusters ({res}district_fixed{txt}) {col 30}= {res}       127{txt}{col 51}Root MSE{col 67}= {res}    1.2369

{txt}{ralign 78:(Std. Err. adjusted for {res:127} clusters in district_fixed)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}cum_lncapa~e{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}inter {c |}{col 14}{res}{space 2} .3569881{col 26}{space 2} .1754439{col 37}{space 1}    2.03{col 46}{space 3}0.044{col 54}{space 4} .0097898{col 67}{space 3} .7041863
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

Absorbed degrees of freedom:
{hline 13}{c TT}{hline 49}{c TRC}
 Absorbed FE {c |}  Num. Coefs.  =   Categories  -   Redundant     {c |} 
{hline 13}{c +}{hline 49}{c RT}
 state_fixed {c |}           20              20              0     {c |} 
        year {c |}            1               2              1     {c |} 
{hline 13}{c BT}{hline 49}{c BRC}
{res}
{txt}{inp}{title:Stage: ols}

{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}       145
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}    126{txt}){col 67}= {res}      2.74
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.1004
{txt}{col 51}R-squared{col 67}= {res}    0.2057
{txt}{col 51}Adj R-squared{col 67}= {res}    0.0701
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0191
{txt}{col 1}Number of clusters ({res}district_fixed{txt}) {col 30}= {res}       127{txt}{col 51}Root MSE{col 67}= {res}    0.2821

{txt}{ralign 88:(Std. Err. adjusted for {res:127} clusters in district_fixed)}
{hline 23}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 24}{c |}{col 36}    Robust
{col 1}           dem_turnout{col 24}{c |}      Coef.{col 36}   Std. Err.{col 48}      t{col 56}   P>|t|{col 64}     [95% Con{col 77}f. Interval]
{hline 23}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
cum_lncapacity_turbine {c |}{col 24}{res}{space 2}-.0301317{col 36}{space 2} .0182033{col 47}{space 1}   -1.66{col 56}{space 3}0.100{col 64}{space 4}-.0661554{col 77}{space 3} .0058921
{txt}{hline 23}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

Absorbed degrees of freedom:
{hline 23}{c TT}{hline 49}{c TRC}
           Absorbed FE {c |}  Num. Coefs.  =   Categories  -   Redundant     {c |} 
{hline 23}{c +}{hline 49}{c RT}
           state_fixed {c |}           20              20              0     {c |} 
                  year {c |}            1               2              1     {c |} 
{hline 23}{c BT}{hline 49}{c BRC}
{res}
{txt}{inp}{title:Stage: reduced}

{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}       145
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}    126{txt}){col 67}= {res}      1.69
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.1956
{txt}{col 51}R-squared{col 67}= {res}    0.1943
{txt}{col 51}Adj R-squared{col 67}= {res}    0.0567
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0051
{txt}{col 1}Number of clusters ({res}district_fixed{txt}) {col 30}= {res}       127{txt}{col 51}Root MSE{col 67}= {res}    0.2841

{txt}{ralign 78:(Std. Err. adjusted for {res:127} clusters in district_fixed)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1} dem_turnout{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}inter {c |}{col 14}{res}{space 2}-.0170413{col 26}{space 2} .0130969{col 37}{space 1}   -1.30{col 46}{space 3}0.196{col 54}{space 4}-.0429597{col 67}{space 3} .0088771
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

Absorbed degrees of freedom:
{hline 13}{c TT}{hline 49}{c TRC}
 Absorbed FE {c |}  Num. Coefs.  =   Categories  -   Redundant     {c |} 
{hline 13}{c +}{hline 49}{c RT}
 state_fixed {c |}           20              20              0     {c |} 
        year {c |}            1               2              1     {c |} 
{hline 13}{c BT}{hline 49}{c BRC}
{res}
{txt}{inp}{title:Stage: iv}


{txt}Summary results for first-stage regressions
{hline 43}

{col 44}{help ivreg2##swstats:(Underid)}{col 65}{help ivreg2##swstats:(Weak id)}
Variable     |{col 16}{help ivreg2##swstats:F}({res}{col 17}  1{txt},{res}   126{txt})  P-val{col 37}|{col 39}{help ivreg2##swstats:SW Chi-sq}({res}  1{txt}) P-val{col 60}|{col 62}{help ivreg2##swstats:SW F}({res}{col 67}  1{txt},{res}   126{txt})
{res}cum_lncapaci{col 14}{txt}|{col 18}{res}    4.14{col 28}  0.0440{col 37}{txt}|{col 42}{res}    4.89{col 51}  0.0271{col 60}{txt}|{col 65}{res}    4.14

{txt}NB: first-stage test statistics cluster-robust

Stock-Yogo weak ID F test critical values for single endogenous regressor:
{res}{txt}{col 36}10% maximal IV size{res}{col 67} 16.38
{txt}{col 36}15% maximal IV size{res}{col 67}  8.96
{txt}{col 36}20% maximal IV size{res}{col 67}  6.66
{txt}{col 36}25% maximal IV size{res}{col 67}  5.53
{txt}Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for i.i.d. errors only.

{help ivreg2##idtest:Underidentification test}
Ho: matrix of reduced form coefficients has rank=K1-1 (underidentified)
Ha: matrix has rank=K1 (identified)
{res}Kleibergen-Paap rk LM statistic{txt}{col 42}Chi-sq({res}1{txt})={res}2.97   {col 61}{txt}P-val={res}0.0846

{help ivreg2##widtest:Weak identification test}
{txt}Ho: equation is weakly identified
{res}Cragg-Donald Wald F statistic{col 65}   14.49
Kleibergen-Paap Wald rk F statistic{col 65}    4.14

{txt}Stock-Yogo weak ID test critical values for K1=1 and L1=1:
{res}{txt}{col 36}10% maximal IV size{res}{col 67} 16.38
{txt}{col 36}15% maximal IV size{res}{col 67}  8.96
{txt}{col 36}20% maximal IV size{res}{col 67}  6.66
{txt}{col 36}25% maximal IV size{res}{col 67}  5.53
{txt}Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.

{help ivreg2##wirobust:Weak-instrument-robust inference}
Tests of joint significance of endogenous regressors B1 in main equation
Ho: B1=0 and orthogonality conditions are valid
{res}Anderson-Rubin Wald test{txt}{col 36}F({res}1{txt},{res}126{txt})={col 49}{res}   1.69{col 61}{txt}P-val={res}0.1956
Anderson-Rubin Wald test{txt}{col 36}Chi-sq({res}1{txt})={col 49}{res}   2.00{col 61}{txt}P-val={res}0.1575
Stock-Wright LM S statistic{txt}{col 36}Chi-sq({res}1{txt})={col 49}{res}   1.88{col 61}{txt}P-val={res}0.1700

{txt}NB: Underidentification, weak identification and weak-identification-robust
    test statistics cluster-robust

Number of clusters             N_clust  = {res}       127
{txt}Number of observations               N  = {res}       145
{txt}Number of regressors                 K  = {res}         1
{txt}Number of endogenous regressors      K1 = {res}         1
{txt}Number of instruments                L  = {res}         1
{txt}Number of excluded instruments       L1 = {res}         1

{txt}HDFE IV (2SLS) estimation
{hline 25}

Estimates efficient for homoskedasticity only
Statistics robust to heteroskedasticity and clustering on district_fixed

Number of clusters (district_fixed) = {col 33}{res}   127{txt}{col 55}Number of obs = {res}     145
{txt}{col 55}F(  1,   126) = {res}    1.06
{txt}{col 55}Prob > F      = {res}  0.3046
{txt}Total (centered) SS     = {res} 9.976702419{txt}{col 55}Centered R2   = {res}  0.2004
{txt}Total (uncentered) SS   = {res} 9.976702419{txt}{col 55}Uncentered R2 = {res}       .
{txt}Residual SS             = {res} 9.850914583{txt}{col 55}Root MSE      = {res}    .283

{txt}{hline 23}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 24}{c |}{col 36}    Robust
{col 1}           dem_turnout{col 24}{c |}      Coef.{col 36}   Std. Err.{col 48}      t{col 56}   P>|t|{col 64}     [95% Con{col 77}f. Interval]
{hline 23}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
cum_lncapacity_turbine {c |}{col 24}{res}{space 2}-.0477364{col 36}{space 2} .0463123{col 47}{space 1}   -1.03{col 56}{space 3}0.305{col 64}{space 4} -.139387{col 77}{space 3} .0439143
{txt}{hline 23}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{help ivreg2##idtest:Underidentification test} (Kleibergen-Paap rk LM statistic):{res}{col 71}   2.974
{txt}{col 52}Chi-sq({res}1{txt}) P-val =  {res}{col 73}0.0846
{txt}{hline 78}
{help ivreg2##widtest:Weak identification test} (Cragg-Donald Wald F statistic):{res}{col 71}  14.493
{txt}                         (Kleibergen-Paap rk Wald F statistic):{res}{col 71}   4.140
{txt}Stock-Yogo weak ID test critical values:{res}{txt}{col 42}10% maximal IV size{res}{col 73} 16.38
{txt}{col 42}15% maximal IV size{res}{col 73}  8.96
{txt}{col 42}20% maximal IV size{res}{col 73}  6.66
{txt}{col 42}25% maximal IV size{res}{col 73}  5.53
{txt}Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.
{hline 78}
{help ivreg2##overidtests:Hansen J statistic} (overidentification test of all instruments):{res}{col 71}   0.000
{txt}{col 50}(equation exactly identified)
{hline 78}
Instrumented:{col 23}cum_lncapacity_turbine
Excluded instruments:{col 23}inter
{hline 78}

Absorbed degrees of freedom:
{hline 23}{c TT}{hline 49}{c TRC}
           Absorbed FE {c |}  Num. Coefs.  =   Categories  -   Redundant     {c |} 
{hline 23}{c +}{hline 49}{c RT}
           state_fixed {c |}           20              20              0     {c |} 
                  year {c |}            1               2              1     {c |} 
{hline 23}{c BT}{hline 49}{c BRC}
{res}{txt}(results {stata estimates replay reghdfe_first1:reghdfe_first1} are active now)
(results {stata estimates replay reghdfe_ols:reghdfe_ols} are active now)
(results {stata estimates replay reghdfe_reduced:reghdfe_reduced} are active now)
lncount
{err}(running historical version of reghdfe)
{res}{txt}(dropped 3 singleton observations)
{res}{txt}(converged in 4 iterations)
{res}
{txt}{inp}{title:Stage: first - cum_lncount_turbine}

{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}       145
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}    126{txt}){col 67}= {res}      3.56
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0616
{txt}{col 51}R-squared{col 67}= {res}    0.2303
{txt}{col 51}Adj R-squared{col 67}= {res}    0.0988
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0915
{txt}{col 1}Number of clusters ({res}district_fixed{txt}) {col 30}= {res}       127{txt}{col 51}Root MSE{col 67}= {res}    1.3187

{txt}{ralign 78:(Std. Err. adjusted for {res:127} clusters in district_fixed)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}cum_lncoun~e{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}inter {c |}{col 14}{res}{space 2}  .351813{col 26}{space 2} .1865367{col 37}{space 1}    1.89{col 46}{space 3}0.062{col 54}{space 4}-.0173376{col 67}{space 3} .7209636
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

Absorbed degrees of freedom:
{hline 13}{c TT}{hline 49}{c TRC}
 Absorbed FE {c |}  Num. Coefs.  =   Categories  -   Redundant     {c |} 
{hline 13}{c +}{hline 49}{c RT}
 state_fixed {c |}           20              20              0     {c |} 
        year {c |}            1               2              1     {c |} 
{hline 13}{c BT}{hline 49}{c BRC}
{res}
{txt}{inp}{title:Stage: ols}

{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}       145
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}    126{txt}){col 67}= {res}      3.15
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0784
{txt}{col 51}R-squared{col 67}= {res}    0.2048
{txt}{col 51}Adj R-squared{col 67}= {res}    0.0691
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0181
{txt}{col 1}Number of clusters ({res}district_fixed{txt}) {col 30}= {res}       127{txt}{col 51}Root MSE{col 67}= {res}    0.2822

{txt}{ralign 85:(Std. Err. adjusted for {res:127} clusters in district_fixed)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}        dem_turnout{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
cum_lncount_turbine {c |}{col 21}{res}{space 2}-.0277079{col 33}{space 2}  .015617{col 44}{space 1}   -1.77{col 53}{space 3}0.078{col 61}{space 4}-.0586134{col 74}{space 3} .0031976
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

Absorbed degrees of freedom:
{hline 20}{c TT}{hline 49}{c TRC}
        Absorbed FE {c |}  Num. Coefs.  =   Categories  -   Redundant     {c |} 
{hline 20}{c +}{hline 49}{c RT}
        state_fixed {c |}           20              20              0     {c |} 
               year {c |}            1               2              1     {c |} 
{hline 20}{c BT}{hline 49}{c BRC}
{res}
{txt}{inp}{title:Stage: reduced}

{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}       145
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}    126{txt}){col 67}= {res}      1.69
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.1956
{txt}{col 51}R-squared{col 67}= {res}    0.1943
{txt}{col 51}Adj R-squared{col 67}= {res}    0.0567
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0051
{txt}{col 1}Number of clusters ({res}district_fixed{txt}) {col 30}= {res}       127{txt}{col 51}Root MSE{col 67}= {res}    0.2841

{txt}{ralign 78:(Std. Err. adjusted for {res:127} clusters in district_fixed)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1} dem_turnout{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}inter {c |}{col 14}{res}{space 2}-.0170413{col 26}{space 2} .0130969{col 37}{space 1}   -1.30{col 46}{space 3}0.196{col 54}{space 4}-.0429597{col 67}{space 3} .0088771
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

Absorbed degrees of freedom:
{hline 13}{c TT}{hline 49}{c TRC}
 Absorbed FE {c |}  Num. Coefs.  =   Categories  -   Redundant     {c |} 
{hline 13}{c +}{hline 49}{c RT}
 state_fixed {c |}           20              20              0     {c |} 
        year {c |}            1               2              1     {c |} 
{hline 13}{c BT}{hline 49}{c BRC}
{res}
{txt}{inp}{title:Stage: iv}


{txt}Summary results for first-stage regressions
{hline 43}

{col 44}{help ivreg2##swstats:(Underid)}{col 65}{help ivreg2##swstats:(Weak id)}
Variable     |{col 16}{help ivreg2##swstats:F}({res}{col 17}  1{txt},{res}   126{txt})  P-val{col 37}|{col 39}{help ivreg2##swstats:SW Chi-sq}({res}  1{txt}) P-val{col 60}|{col 62}{help ivreg2##swstats:SW F}({res}{col 67}  1{txt},{res}   126{txt})
{res}cum_lncount_{col 14}{txt}|{col 18}{res}    3.56{col 28}  0.0616{col 37}{txt}|{col 42}{res}    4.20{col 51}  0.0405{col 60}{txt}|{col 65}{res}    3.56

{txt}NB: first-stage test statistics cluster-robust

Stock-Yogo weak ID F test critical values for single endogenous regressor:
{res}{txt}{col 36}10% maximal IV size{res}{col 67} 16.38
{txt}{col 36}15% maximal IV size{res}{col 67}  8.96
{txt}{col 36}20% maximal IV size{res}{col 67}  6.66
{txt}{col 36}25% maximal IV size{res}{col 67}  5.53
{txt}Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for i.i.d. errors only.

{help ivreg2##idtest:Underidentification test}
Ho: matrix of reduced form coefficients has rank=K1-1 (underidentified)
Ha: matrix has rank=K1 (identified)
{res}Kleibergen-Paap rk LM statistic{txt}{col 42}Chi-sq({res}1{txt})={res}2.73   {col 61}{txt}P-val={res}0.0985

{help ivreg2##widtest:Weak identification test}
{txt}Ho: equation is weakly identified
{res}Cragg-Donald Wald F statistic{col 65}   12.38
Kleibergen-Paap Wald rk F statistic{col 65}    3.56

{txt}Stock-Yogo weak ID test critical values for K1=1 and L1=1:
{res}{txt}{col 36}10% maximal IV size{res}{col 67} 16.38
{txt}{col 36}15% maximal IV size{res}{col 67}  8.96
{txt}{col 36}20% maximal IV size{res}{col 67}  6.66
{txt}{col 36}25% maximal IV size{res}{col 67}  5.53
{txt}Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.

{help ivreg2##wirobust:Weak-instrument-robust inference}
Tests of joint significance of endogenous regressors B1 in main equation
Ho: B1=0 and orthogonality conditions are valid
{res}Anderson-Rubin Wald test{txt}{col 36}F({res}1{txt},{res}126{txt})={col 49}{res}   1.69{col 61}{txt}P-val={res}0.1956
Anderson-Rubin Wald test{txt}{col 36}Chi-sq({res}1{txt})={col 49}{res}   2.00{col 61}{txt}P-val={res}0.1575
Stock-Wright LM S statistic{txt}{col 36}Chi-sq({res}1{txt})={col 49}{res}   1.88{col 61}{txt}P-val={res}0.1700

{txt}NB: Underidentification, weak identification and weak-identification-robust
    test statistics cluster-robust

Number of clusters             N_clust  = {res}       127
{txt}Number of observations               N  = {res}       145
{txt}Number of regressors                 K  = {res}         1
{txt}Number of endogenous regressors      K1 = {res}         1
{txt}Number of instruments                L  = {res}         1
{txt}Number of excluded instruments       L1 = {res}         1

{txt}HDFE IV (2SLS) estimation
{hline 25}

Estimates efficient for homoskedasticity only
Statistics robust to heteroskedasticity and clustering on district_fixed

Number of clusters (district_fixed) = {col 33}{res}   127{txt}{col 55}Number of obs = {res}     145
{txt}{col 55}F(  1,   126) = {res}    1.05
{txt}{col 55}Prob > F      = {res}  0.3074
{txt}Total (centered) SS     = {res} 9.976702419{txt}{col 55}Centered R2   = {res}  0.1966
{txt}Total (uncentered) SS   = {res} 9.976702419{txt}{col 55}Uncentered R2 = {res}       .
{txt}Residual SS             = {res} 9.897136438{txt}{col 55}Root MSE      = {res}   .2837

{txt}{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}        dem_turnout{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
cum_lncount_turbine {c |}{col 21}{res}{space 2}-.0484386{col 33}{space 2} .0472665{col 44}{space 1}   -1.02{col 53}{space 3}0.307{col 61}{space 4}-.1419776{col 74}{space 3} .0451004
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{help ivreg2##idtest:Underidentification test} (Kleibergen-Paap rk LM statistic):{res}{col 71}   2.729
{txt}{col 52}Chi-sq({res}1{txt}) P-val =  {res}{col 73}0.0985
{txt}{hline 78}
{help ivreg2##widtest:Weak identification test} (Cragg-Donald Wald F statistic):{res}{col 71}  12.384
{txt}                         (Kleibergen-Paap rk Wald F statistic):{res}{col 71}   3.557
{txt}Stock-Yogo weak ID test critical values:{res}{txt}{col 42}10% maximal IV size{res}{col 73} 16.38
{txt}{col 42}15% maximal IV size{res}{col 73}  8.96
{txt}{col 42}20% maximal IV size{res}{col 73}  6.66
{txt}{col 42}25% maximal IV size{res}{col 73}  5.53
{txt}Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.
{hline 78}
{help ivreg2##overidtests:Hansen J statistic} (overidentification test of all instruments):{res}{col 71}   0.000
{txt}{col 50}(equation exactly identified)
{hline 78}
Instrumented:{col 23}cum_lncount_turbine
Excluded instruments:{col 23}inter
{hline 78}

Absorbed degrees of freedom:
{hline 20}{c TT}{hline 49}{c TRC}
        Absorbed FE {c |}  Num. Coefs.  =   Categories  -   Redundant     {c |} 
{hline 20}{c +}{hline 49}{c RT}
        state_fixed {c |}           20              20              0     {c |} 
               year {c |}            1               2              1     {c |} 
{hline 20}{c BT}{hline 49}{c BRC}
{res}{txt}(results {stata estimates replay reghdfe_first1:reghdfe_first1} are active now)
(results {stata estimates replay reghdfe_ols:reghdfe_ols} are active now)
(results {stata estimates replay reghdfe_reduced:reghdfe_reduced} are active now)
lncapacity
{err}(running historical version of reghdfe)
{res}{txt}(dropped 4 singleton observations)
{res}{txt}(converged in 4 iterations)
{res}
{txt}{inp}{title:Stage: first - cum_lncapacity_turbine}

{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}       125
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}    111{txt}){col 67}= {res}      2.93
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0895
{txt}{col 51}R-squared{col 67}= {res}    0.2483
{txt}{col 51}Adj R-squared{col 67}= {res}    0.1037
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0926
{txt}{col 1}Number of clusters ({res}district_fixed{txt}) {col 30}= {res}       112{txt}{col 51}Root MSE{col 67}= {res}    1.3093

{txt}{ralign 78:(Std. Err. adjusted for {res:112} clusters in district_fixed)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}cum_lncapa~e{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}inter {c |}{col 14}{res}{space 2} .3459127{col 26}{space 2}  .201954{col 37}{space 1}    1.71{col 46}{space 3}0.090{col 54}{space 4}-.0542726{col 67}{space 3} .7460981
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

Absorbed degrees of freedom:
{hline 13}{c TT}{hline 49}{c TRC}
 Absorbed FE {c |}  Num. Coefs.  =   Categories  -   Redundant     {c |} 
{hline 13}{c +}{hline 49}{c RT}
 state_fixed {c |}           19              19              0     {c |} 
        year {c |}            1               2              1     {c |} 
{hline 13}{c BT}{hline 49}{c BRC}
{res}
{txt}{inp}{title:Stage: ols}

{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}       125
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}    111{txt}){col 67}= {res}      0.18
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.6764
{txt}{col 51}R-squared{col 67}= {res}    0.1106
{txt}{col 51}Adj R-squared{col 67}= {res}   -0.0604
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0008
{txt}{col 1}Number of clusters ({res}district_fixed{txt}) {col 30}= {res}       112{txt}{col 51}Root MSE{col 67}= {res}    0.2615

{txt}{ralign 88:(Std. Err. adjusted for {res:112} clusters in district_fixed)}
{hline 23}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 24}{c |}{col 36}    Robust
{col 1}           rep_turnout{col 24}{c |}      Coef.{col 36}   Std. Err.{col 48}      t{col 56}   P>|t|{col 64}     [95% Con{col 77}f. Interval]
{hline 23}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
cum_lncapacity_turbine {c |}{col 24}{res}{space 2} .0052294{col 36}{space 2} .0124975{col 47}{space 1}    0.42{col 56}{space 3}0.676{col 64}{space 4}-.0195353{col 77}{space 3} .0299941
{txt}{hline 23}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

Absorbed degrees of freedom:
{hline 23}{c TT}{hline 49}{c TRC}
           Absorbed FE {c |}  Num. Coefs.  =   Categories  -   Redundant     {c |} 
{hline 23}{c +}{hline 49}{c RT}
           state_fixed {c |}           19              19              0     {c |} 
                  year {c |}            1               2              1     {c |} 
{hline 23}{c BT}{hline 49}{c BRC}
{res}
{txt}{inp}{title:Stage: reduced}

{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}       125
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}    111{txt}){col 67}= {res}      0.60
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.4408
{txt}{col 51}R-squared{col 67}= {res}    0.1131
{txt}{col 51}Adj R-squared{col 67}= {res}   -0.0575
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0036
{txt}{col 1}Number of clusters ({res}district_fixed{txt}) {col 30}= {res}       112{txt}{col 51}Root MSE{col 67}= {res}    0.2612

{txt}{ralign 78:(Std. Err. adjusted for {res:112} clusters in district_fixed)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1} rep_turnout{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}inter {c |}{col 14}{res}{space 2}-.0129105{col 26}{space 2} .0166876{col 37}{space 1}   -0.77{col 46}{space 3}0.441{col 54}{space 4} -.045978{col 67}{space 3} .0201571
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

Absorbed degrees of freedom:
{hline 13}{c TT}{hline 49}{c TRC}
 Absorbed FE {c |}  Num. Coefs.  =   Categories  -   Redundant     {c |} 
{hline 13}{c +}{hline 49}{c RT}
 state_fixed {c |}           19              19              0     {c |} 
        year {c |}            1               2              1     {c |} 
{hline 13}{c BT}{hline 49}{c BRC}
{res}
{txt}{inp}{title:Stage: iv}


{txt}Summary results for first-stage regressions
{hline 43}

{col 44}{help ivreg2##swstats:(Underid)}{col 65}{help ivreg2##swstats:(Weak id)}
Variable     |{col 16}{help ivreg2##swstats:F}({res}{col 17}  1{txt},{res}   111{txt})  P-val{col 37}|{col 39}{help ivreg2##swstats:SW Chi-sq}({res}  1{txt}) P-val{col 60}|{col 62}{help ivreg2##swstats:SW F}({res}{col 67}  1{txt},{res}   111{txt})
{res}cum_lncapaci{col 14}{txt}|{col 18}{res}    2.93{col 28}  0.0895{col 37}{txt}|{col 42}{res}    3.53{col 51}  0.0603{col 60}{txt}|{col 65}{res}    2.93

{txt}NB: first-stage test statistics cluster-robust

Stock-Yogo weak ID F test critical values for single endogenous regressor:
{res}{txt}{col 36}10% maximal IV size{res}{col 67} 16.38
{txt}{col 36}15% maximal IV size{res}{col 67}  8.96
{txt}{col 36}20% maximal IV size{res}{col 67}  6.66
{txt}{col 36}25% maximal IV size{res}{col 67}  5.53
{txt}Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for i.i.d. errors only.

{help ivreg2##idtest:Underidentification test}
Ho: matrix of reduced form coefficients has rank=K1-1 (underidentified)
Ha: matrix has rank=K1 (identified)
{res}Kleibergen-Paap rk LM statistic{txt}{col 42}Chi-sq({res}1{txt})={res}2.14   {col 61}{txt}P-val={res}0.1435

{help ivreg2##widtest:Weak identification test}
{txt}Ho: equation is weakly identified
{res}Cragg-Donald Wald F statistic{col 65}   10.61
Kleibergen-Paap Wald rk F statistic{col 65}    2.93

{txt}Stock-Yogo weak ID test critical values for K1=1 and L1=1:
{res}{txt}{col 36}10% maximal IV size{res}{col 67} 16.38
{txt}{col 36}15% maximal IV size{res}{col 67}  8.96
{txt}{col 36}20% maximal IV size{res}{col 67}  6.66
{txt}{col 36}25% maximal IV size{res}{col 67}  5.53
{txt}Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.

{help ivreg2##wirobust:Weak-instrument-robust inference}
Tests of joint significance of endogenous regressors B1 in main equation
Ho: B1=0 and orthogonality conditions are valid
{res}Anderson-Rubin Wald test{txt}{col 36}F({res}1{txt},{res}111{txt})={col 49}{res}   0.60{col 61}{txt}P-val={res}0.4408
Anderson-Rubin Wald test{txt}{col 36}Chi-sq({res}1{txt})={col 49}{res}   0.72{col 61}{txt}P-val={res}0.3961
Stock-Wright LM S statistic{txt}{col 36}Chi-sq({res}1{txt})={col 49}{res}   0.70{col 61}{txt}P-val={res}0.4038

{txt}NB: Underidentification, weak identification and weak-identification-robust
    test statistics cluster-robust

Number of clusters             N_clust  = {res}       112
{txt}Number of observations               N  = {res}       125
{txt}Number of regressors                 K  = {res}         1
{txt}Number of endogenous regressors      K1 = {res}         1
{txt}Number of instruments                L  = {res}         1
{txt}Number of excluded instruments       L1 = {res}         1

{txt}HDFE IV (2SLS) estimation
{hline 25}

Estimates efficient for homoskedasticity only
Statistics robust to heteroskedasticity and clustering on district_fixed

Number of clusters (district_fixed) = {col 33}{res}   112{txt}{col 55}Number of obs = {res}     125
{txt}{col 55}F(  1,   111) = {res}    0.35
{txt}{col 55}Prob > F      = {res}  0.5539
{txt}Total (centered) SS     = {res} 7.118373828{txt}{col 55}Centered R2   = {res}  0.0661
{txt}Total (uncentered) SS   = {res} 7.118373828{txt}{col 55}Uncentered R2 = {res}       .
{txt}Residual SS             = {res} 7.468745575{txt}{col 55}Root MSE      = {res}    .268

{txt}{hline 23}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 24}{c |}{col 36}    Robust
{col 1}           rep_turnout{col 24}{c |}      Coef.{col 36}   Std. Err.{col 48}      t{col 56}   P>|t|{col 64}     [95% Con{col 77}f. Interval]
{hline 23}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
cum_lncapacity_turbine {c |}{col 24}{res}{space 2}-.0373229{col 36}{space 2} .0628639{col 47}{space 1}   -0.59{col 56}{space 3}0.554{col 64}{space 4} -.161892{col 77}{space 3} .0872462
{txt}{hline 23}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{help ivreg2##idtest:Underidentification test} (Kleibergen-Paap rk LM statistic):{res}{col 71}   2.140
{txt}{col 52}Chi-sq({res}1{txt}) P-val =  {res}{col 73}0.1435
{txt}{hline 78}
{help ivreg2##widtest:Weak identification test} (Cragg-Donald Wald F statistic):{res}{col 71}  10.611
{txt}                         (Kleibergen-Paap rk Wald F statistic):{res}{col 71}   2.934
{txt}Stock-Yogo weak ID test critical values:{res}{txt}{col 42}10% maximal IV size{res}{col 73} 16.38
{txt}{col 42}15% maximal IV size{res}{col 73}  8.96
{txt}{col 42}20% maximal IV size{res}{col 73}  6.66
{txt}{col 42}25% maximal IV size{res}{col 73}  5.53
{txt}Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.
{hline 78}
{help ivreg2##overidtests:Hansen J statistic} (overidentification test of all instruments):{res}{col 71}   0.000
{txt}{col 50}(equation exactly identified)
{hline 78}
Instrumented:{col 23}cum_lncapacity_turbine
Excluded instruments:{col 23}inter
{hline 78}

Absorbed degrees of freedom:
{hline 23}{c TT}{hline 49}{c TRC}
           Absorbed FE {c |}  Num. Coefs.  =   Categories  -   Redundant     {c |} 
{hline 23}{c +}{hline 49}{c RT}
           state_fixed {c |}           19              19              0     {c |} 
                  year {c |}            1               2              1     {c |} 
{hline 23}{c BT}{hline 49}{c BRC}
{res}{txt}(results {stata estimates replay reghdfe_first1:reghdfe_first1} are active now)
(results {stata estimates replay reghdfe_ols:reghdfe_ols} are active now)
(results {stata estimates replay reghdfe_reduced:reghdfe_reduced} are active now)
lncount
{err}(running historical version of reghdfe)
{res}{txt}(dropped 4 singleton observations)
{res}{txt}(converged in 4 iterations)
{res}
{txt}{inp}{title:Stage: first - cum_lncount_turbine}

{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}       125
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}    111{txt}){col 67}= {res}      2.70
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.1034
{txt}{col 51}R-squared{col 67}= {res}    0.2260
{txt}{col 51}Adj R-squared{col 67}= {res}    0.0771
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0845
{txt}{col 1}Number of clusters ({res}district_fixed{txt}) {col 30}= {res}       112{txt}{col 51}Root MSE{col 67}= {res}    1.4090

{txt}{ralign 78:(Std. Err. adjusted for {res:112} clusters in district_fixed)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}cum_lncoun~e{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}inter {c |}{col 14}{res}{space 2} .3541161{col 26}{space 2} .2156426{col 37}{space 1}    1.64{col 46}{space 3}0.103{col 54}{space 4} -.073194{col 67}{space 3} .7814263
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

Absorbed degrees of freedom:
{hline 13}{c TT}{hline 49}{c TRC}
 Absorbed FE {c |}  Num. Coefs.  =   Categories  -   Redundant     {c |} 
{hline 13}{c +}{hline 49}{c RT}
 state_fixed {c |}           19              19              0     {c |} 
        year {c |}            1               2              1     {c |} 
{hline 13}{c BT}{hline 49}{c BRC}
{res}
{txt}{inp}{title:Stage: ols}

{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}       125
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}    111{txt}){col 67}= {res}      0.40
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.5282
{txt}{col 51}R-squared{col 67}= {res}    0.1112
{txt}{col 51}Adj R-squared{col 67}= {res}   -0.0598
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0014
{txt}{col 1}Number of clusters ({res}district_fixed{txt}) {col 30}= {res}       112{txt}{col 51}Root MSE{col 67}= {res}    0.2614

{txt}{ralign 85:(Std. Err. adjusted for {res:112} clusters in district_fixed)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}        rep_turnout{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
cum_lncount_turbine {c |}{col 21}{res}{space 2} .0065894{col 33}{space 2} .0104131{col 44}{space 1}    0.63{col 53}{space 3}0.528{col 61}{space 4}-.0140449{col 74}{space 3} .0272237
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

Absorbed degrees of freedom:
{hline 20}{c TT}{hline 49}{c TRC}
        Absorbed FE {c |}  Num. Coefs.  =   Categories  -   Redundant     {c |} 
{hline 20}{c +}{hline 49}{c RT}
        state_fixed {c |}           19              19              0     {c |} 
               year {c |}            1               2              1     {c |} 
{hline 20}{c BT}{hline 49}{c BRC}
{res}
{txt}{inp}{title:Stage: reduced}

{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}       125
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}    111{txt}){col 67}= {res}      0.60
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.4408
{txt}{col 51}R-squared{col 67}= {res}    0.1131
{txt}{col 51}Adj R-squared{col 67}= {res}   -0.0575
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0036
{txt}{col 1}Number of clusters ({res}district_fixed{txt}) {col 30}= {res}       112{txt}{col 51}Root MSE{col 67}= {res}    0.2612

{txt}{ralign 78:(Std. Err. adjusted for {res:112} clusters in district_fixed)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1} rep_turnout{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}inter {c |}{col 14}{res}{space 2}-.0129105{col 26}{space 2} .0166876{col 37}{space 1}   -0.77{col 46}{space 3}0.441{col 54}{space 4} -.045978{col 67}{space 3} .0201571
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

Absorbed degrees of freedom:
{hline 13}{c TT}{hline 49}{c TRC}
 Absorbed FE {c |}  Num. Coefs.  =   Categories  -   Redundant     {c |} 
{hline 13}{c +}{hline 49}{c RT}
 state_fixed {c |}           19              19              0     {c |} 
        year {c |}            1               2              1     {c |} 
{hline 13}{c BT}{hline 49}{c BRC}
{res}
{txt}{inp}{title:Stage: iv}


{txt}Summary results for first-stage regressions
{hline 43}

{col 44}{help ivreg2##swstats:(Underid)}{col 65}{help ivreg2##swstats:(Weak id)}
Variable     |{col 16}{help ivreg2##swstats:F}({res}{col 17}  1{txt},{res}   111{txt})  P-val{col 37}|{col 39}{help ivreg2##swstats:SW Chi-sq}({res}  1{txt}) P-val{col 60}|{col 62}{help ivreg2##swstats:SW F}({res}{col 67}  1{txt},{res}   111{txt})
{res}cum_lncount_{col 14}{txt}|{col 18}{res}    2.70{col 28}  0.1034{col 37}{txt}|{col 42}{res}    3.24{col 51}  0.0717{col 60}{txt}|{col 65}{res}    2.70

{txt}NB: first-stage test statistics cluster-robust

Stock-Yogo weak ID F test critical values for single endogenous regressor:
{res}{txt}{col 36}10% maximal IV size{res}{col 67} 16.38
{txt}{col 36}15% maximal IV size{res}{col 67}  8.96
{txt}{col 36}20% maximal IV size{res}{col 67}  6.66
{txt}{col 36}25% maximal IV size{res}{col 67}  5.53
{txt}Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for i.i.d. errors only.

{help ivreg2##idtest:Underidentification test}
Ho: matrix of reduced form coefficients has rank=K1-1 (underidentified)
Ha: matrix has rank=K1 (identified)
{res}Kleibergen-Paap rk LM statistic{txt}{col 42}Chi-sq({res}1{txt})={res}2.09   {col 61}{txt}P-val={res}0.1480

{help ivreg2##widtest:Weak identification test}
{txt}Ho: equation is weakly identified
{res}Cragg-Donald Wald F statistic{col 65}    9.60
Kleibergen-Paap Wald rk F statistic{col 65}    2.70

{txt}Stock-Yogo weak ID test critical values for K1=1 and L1=1:
{res}{txt}{col 36}10% maximal IV size{res}{col 67} 16.38
{txt}{col 36}15% maximal IV size{res}{col 67}  8.96
{txt}{col 36}20% maximal IV size{res}{col 67}  6.66
{txt}{col 36}25% maximal IV size{res}{col 67}  5.53
{txt}Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.

{help ivreg2##wirobust:Weak-instrument-robust inference}
Tests of joint significance of endogenous regressors B1 in main equation
Ho: B1=0 and orthogonality conditions are valid
{res}Anderson-Rubin Wald test{txt}{col 36}F({res}1{txt},{res}111{txt})={col 49}{res}   0.60{col 61}{txt}P-val={res}0.4408
Anderson-Rubin Wald test{txt}{col 36}Chi-sq({res}1{txt})={col 49}{res}   0.72{col 61}{txt}P-val={res}0.3961
Stock-Wright LM S statistic{txt}{col 36}Chi-sq({res}1{txt})={col 49}{res}   0.70{col 61}{txt}P-val={res}0.4038

{txt}NB: Underidentification, weak identification and weak-identification-robust
    test statistics cluster-robust

Number of clusters             N_clust  = {res}       112
{txt}Number of observations               N  = {res}       125
{txt}Number of regressors                 K  = {res}         1
{txt}Number of endogenous regressors      K1 = {res}         1
{txt}Number of instruments                L  = {res}         1
{txt}Number of excluded instruments       L1 = {res}         1

{txt}HDFE IV (2SLS) estimation
{hline 25}

Estimates efficient for homoskedasticity only
Statistics robust to heteroskedasticity and clustering on district_fixed

Number of clusters (district_fixed) = {col 33}{res}   112{txt}{col 55}Number of obs = {res}     125
{txt}{col 55}F(  1,   111) = {res}    0.35
{txt}{col 55}Prob > F      = {res}  0.5580
{txt}Total (centered) SS     = {res} 7.118373828{txt}{col 55}Centered R2   = {res}  0.0589
{txt}Total (uncentered) SS   = {res} 7.118373828{txt}{col 55}Uncentered R2 = {res}       .
{txt}Residual SS             = {res} 7.526498414{txt}{col 55}Root MSE      = {res}    .269

{txt}{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}        rep_turnout{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
cum_lncount_turbine {c |}{col 21}{res}{space 2}-.0364583{col 33}{space 2} .0620409{col 44}{space 1}   -0.59{col 53}{space 3}0.558{col 61}{space 4}-.1593964{col 74}{space 3} .0864798
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{help ivreg2##idtest:Underidentification test} (Kleibergen-Paap rk LM statistic):{res}{col 71}   2.093
{txt}{col 52}Chi-sq({res}1{txt}) P-val =  {res}{col 73}0.1480
{txt}{hline 78}
{help ivreg2##widtest:Weak identification test} (Cragg-Donald Wald F statistic):{res}{col 71}   9.602
{txt}                         (Kleibergen-Paap rk Wald F statistic):{res}{col 71}   2.697
{txt}Stock-Yogo weak ID test critical values:{res}{txt}{col 42}10% maximal IV size{res}{col 73} 16.38
{txt}{col 42}15% maximal IV size{res}{col 73}  8.96
{txt}{col 42}20% maximal IV size{res}{col 73}  6.66
{txt}{col 42}25% maximal IV size{res}{col 73}  5.53
{txt}Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.
{hline 78}
{help ivreg2##overidtests:Hansen J statistic} (overidentification test of all instruments):{res}{col 71}   0.000
{txt}{col 50}(equation exactly identified)
{hline 78}
Instrumented:{col 23}cum_lncount_turbine
Excluded instruments:{col 23}inter
{hline 78}

Absorbed degrees of freedom:
{hline 20}{c TT}{hline 49}{c TRC}
        Absorbed FE {c |}  Num. Coefs.  =   Categories  -   Redundant     {c |} 
{hline 20}{c +}{hline 49}{c RT}
        state_fixed {c |}           19              19              0     {c |} 
               year {c |}            1               2              1     {c |} 
{hline 20}{c BT}{hline 49}{c BRC}
{res}{txt}(results {stata estimates replay reghdfe_first1:reghdfe_first1} are active now)
(results {stata estimates replay reghdfe_ols:reghdfe_ols} are active now)
(results {stata estimates replay reghdfe_reduced:reghdfe_reduced} are active now)
lncapacity
{err}(running historical version of reghdfe)
{res}{txt}(dropped 5 singleton observations)
{res}{txt}(converged in 4 iterations)
{res}
{txt}{inp}{title:Stage: first - cum_lncapacity_turbine}

{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}        84
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}     75{txt}){col 67}= {res}      3.27
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0744
{txt}{col 51}R-squared{col 67}= {res}    0.2992
{txt}{col 51}Adj R-squared{col 67}= {res}    0.1051
{txt}{col 51}Within R-sq.{col 67}= {res}    0.1101
{txt}{col 1}Number of clusters ({res}district_fixed{txt}) {col 30}= {res}        76{txt}{col 51}Root MSE{col 67}= {res}    1.5980

{txt}{ralign 78:(Std. Err. adjusted for {res:76} clusters in district_fixed)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}cum_lncapa~e{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}inter {c |}{col 14}{res}{space 2} .3940231{col 26}{space 2} .2177586{col 37}{space 1}    1.81{col 46}{space 3}0.074{col 54}{space 4}-.0397743{col 67}{space 3} .8278205
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

Absorbed degrees of freedom:
{hline 13}{c TT}{hline 49}{c TRC}
 Absorbed FE {c |}  Num. Coefs.  =   Categories  -   Redundant     {c |} 
{hline 13}{c +}{hline 49}{c RT}
 state_fixed {c |}           17              17              0     {c |} 
        year {c |}            1               2              1     {c |} 
{hline 13}{c BT}{hline 49}{c BRC}
{res}
{txt}{inp}{title:Stage: ols}

{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}        84
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}     75{txt}){col 67}= {res}      0.08
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.7729
{txt}{col 51}R-squared{col 67}= {res}    0.2436
{txt}{col 51}Adj R-squared{col 67}= {res}    0.0341
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0012
{txt}{col 1}Number of clusters ({res}district_fixed{txt}) {col 30}= {res}        76{txt}{col 51}Root MSE{col 67}= {res}    0.4045

{txt}{ralign 88:(Std. Err. adjusted for {res:76} clusters in district_fixed)}
{hline 23}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 24}{c |}{col 36}    Robust
{col 1}           ind_turnout{col 24}{c |}      Coef.{col 36}   Std. Err.{col 48}      t{col 56}   P>|t|{col 64}     [95% Con{col 77}f. Interval]
{hline 23}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
cum_lncapacity_turbine {c |}{col 24}{res}{space 2} .0082003{col 36}{space 2}  .028313{col 47}{space 1}    0.29{col 56}{space 3}0.773{col 64}{space 4} -.048202{col 77}{space 3} .0646027
{txt}{hline 23}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

Absorbed degrees of freedom:
{hline 23}{c TT}{hline 49}{c TRC}
           Absorbed FE {c |}  Num. Coefs.  =   Categories  -   Redundant     {c |} 
{hline 23}{c +}{hline 49}{c RT}
           state_fixed {c |}           17              17              0     {c |} 
                  year {c |}            1               2              1     {c |} 
{hline 23}{c BT}{hline 49}{c BRC}
{res}
{txt}{inp}{title:Stage: reduced}

{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}        84
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}     75{txt}){col 67}= {res}      0.86
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.3568
{txt}{col 51}R-squared{col 67}= {res}    0.2583
{txt}{col 51}Adj R-squared{col 67}= {res}    0.0529
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0206
{txt}{col 1}Number of clusters ({res}district_fixed{txt}) {col 30}= {res}        76{txt}{col 51}Root MSE{col 67}= {res}    0.4005

{txt}{ralign 78:(Std. Err. adjusted for {res:76} clusters in district_fixed)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1} ind_turnout{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}inter {c |}{col 14}{res}{space 2} .0407134{col 26}{space 2} .0439096{col 37}{space 1}    0.93{col 46}{space 3}0.357{col 54}{space 4}-.0467589{col 67}{space 3} .1281858
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

Absorbed degrees of freedom:
{hline 13}{c TT}{hline 49}{c TRC}
 Absorbed FE {c |}  Num. Coefs.  =   Categories  -   Redundant     {c |} 
{hline 13}{c +}{hline 49}{c RT}
 state_fixed {c |}           17              17              0     {c |} 
        year {c |}            1               2              1     {c |} 
{hline 13}{c BT}{hline 49}{c BRC}
{res}
{txt}{inp}{title:Stage: iv}


{txt}Summary results for first-stage regressions
{hline 43}

{col 44}{help ivreg2##swstats:(Underid)}{col 65}{help ivreg2##swstats:(Weak id)}
Variable     |{col 16}{help ivreg2##swstats:F}({res}{col 17}  1{txt},{res}    75{txt})  P-val{col 37}|{col 39}{help ivreg2##swstats:SW Chi-sq}({res}  1{txt}) P-val{col 60}|{col 62}{help ivreg2##swstats:SW F}({res}{col 67}  1{txt},{res}    75{txt})
{res}cum_lncapaci{col 14}{txt}|{col 18}{res}    3.27{col 28}  0.0744{col 37}{txt}|{col 42}{res}    4.24{col 51}  0.0396{col 60}{txt}|{col 65}{res}    3.27

{txt}NB: first-stage test statistics cluster-robust

Stock-Yogo weak ID F test critical values for single endogenous regressor:
{res}{txt}{col 36}10% maximal IV size{res}{col 67} 16.38
{txt}{col 36}15% maximal IV size{res}{col 67}  8.96
{txt}{col 36}20% maximal IV size{res}{col 67}  6.66
{txt}{col 36}25% maximal IV size{res}{col 67}  5.53
{txt}Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for i.i.d. errors only.

{help ivreg2##idtest:Underidentification test}
Ho: matrix of reduced form coefficients has rank=K1-1 (underidentified)
Ha: matrix has rank=K1 (identified)
{res}Kleibergen-Paap rk LM statistic{txt}{col 42}Chi-sq({res}1{txt})={res}2.62   {col 61}{txt}P-val={res}0.1054

{help ivreg2##widtest:Weak identification test}
{txt}Ho: equation is weakly identified
{res}Cragg-Donald Wald F statistic{col 65}    8.04
Kleibergen-Paap Wald rk F statistic{col 65}    3.27

{txt}Stock-Yogo weak ID test critical values for K1=1 and L1=1:
{res}{txt}{col 36}10% maximal IV size{res}{col 67} 16.38
{txt}{col 36}15% maximal IV size{res}{col 67}  8.96
{txt}{col 36}20% maximal IV size{res}{col 67}  6.66
{txt}{col 36}25% maximal IV size{res}{col 67}  5.53
{txt}Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.

{help ivreg2##wirobust:Weak-instrument-robust inference}
Tests of joint significance of endogenous regressors B1 in main equation
Ho: B1=0 and orthogonality conditions are valid
{res}Anderson-Rubin Wald test{txt}{col 36}F({res}1{txt},{res}75{txt})={col 49}{res}   0.86{col 61}{txt}P-val={res}0.3568
Anderson-Rubin Wald test{txt}{col 36}Chi-sq({res}1{txt})={col 49}{res}   1.11{col 61}{txt}P-val={res}0.2916
Stock-Wright LM S statistic{txt}{col 36}Chi-sq({res}1{txt})={col 49}{res}   1.48{col 61}{txt}P-val={res}0.2245

{txt}NB: Underidentification, weak identification and weak-identification-robust
    test statistics cluster-robust

Number of clusters             N_clust  = {res}        76
{txt}Number of observations               N  = {res}        84
{txt}Number of regressors                 K  = {res}         1
{txt}Number of endogenous regressors      K1 = {res}         1
{txt}Number of instruments                L  = {res}         1
{txt}Number of excluded instruments       L1 = {res}         1

{txt}HDFE IV (2SLS) estimation
{hline 25}

Estimates efficient for homoskedasticity only
Statistics robust to heteroskedasticity and clustering on district_fixed

Number of clusters (district_fixed) = {col 33}{res}    76{txt}{col 55}Number of obs = {res}      84
{txt}{col 55}F(  1,    75) = {res}    0.71
{txt}{col 55}Prob > F      = {res}  0.4024
{txt}Total (centered) SS     = {res} 10.64639115{txt}{col 55}Centered R2   = {res}  0.1235
{txt}Total (uncentered) SS   = {res} 10.64639115{txt}{col 55}Uncentered R2 = {res}       .
{txt}Residual SS             = {res} 12.32165414{txt}{col 55}Root MSE      = {res}   .4354

{txt}{hline 23}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 24}{c |}{col 36}    Robust
{col 1}           ind_turnout{col 24}{c |}      Coef.{col 36}   Std. Err.{col 48}      t{col 56}   P>|t|{col 64}     [95% Con{col 77}f. Interval]
{hline 23}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
cum_lncapacity_turbine {c |}{col 24}{res}{space 2} .1033275{col 36}{space 2}  .122688{col 47}{space 1}    0.84{col 56}{space 3}0.402{col 64}{space 4}-.1410794{col 77}{space 3} .3477345
{txt}{hline 23}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{help ivreg2##idtest:Underidentification test} (Kleibergen-Paap rk LM statistic):{res}{col 71}   2.622
{txt}{col 52}Chi-sq({res}1{txt}) P-val =  {res}{col 73}0.1054
{txt}{hline 78}
{help ivreg2##widtest:Weak identification test} (Cragg-Donald Wald F statistic):{res}{col 71}   8.039
{txt}                         (Kleibergen-Paap rk Wald F statistic):{res}{col 71}   3.274
{txt}Stock-Yogo weak ID test critical values:{res}{txt}{col 42}10% maximal IV size{res}{col 73} 16.38
{txt}{col 42}15% maximal IV size{res}{col 73}  8.96
{txt}{col 42}20% maximal IV size{res}{col 73}  6.66
{txt}{col 42}25% maximal IV size{res}{col 73}  5.53
{txt}Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.
{hline 78}
{help ivreg2##overidtests:Hansen J statistic} (overidentification test of all instruments):{res}{col 71}   0.000
{txt}{col 50}(equation exactly identified)
{hline 78}
Instrumented:{col 23}cum_lncapacity_turbine
Excluded instruments:{col 23}inter
{hline 78}

Absorbed degrees of freedom:
{hline 23}{c TT}{hline 49}{c TRC}
           Absorbed FE {c |}  Num. Coefs.  =   Categories  -   Redundant     {c |} 
{hline 23}{c +}{hline 49}{c RT}
           state_fixed {c |}           17              17              0     {c |} 
                  year {c |}            1               2              1     {c |} 
{hline 23}{c BT}{hline 49}{c BRC}
{res}{txt}(results {stata estimates replay reghdfe_first1:reghdfe_first1} are active now)
(results {stata estimates replay reghdfe_ols:reghdfe_ols} are active now)
(results {stata estimates replay reghdfe_reduced:reghdfe_reduced} are active now)
lncount
{err}(running historical version of reghdfe)
{res}{txt}(dropped 5 singleton observations)
{res}{txt}(converged in 4 iterations)
{res}
{txt}{inp}{title:Stage: first - cum_lncount_turbine}

{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}        84
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}     75{txt}){col 67}= {res}      2.52
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.1166
{txt}{col 51}R-squared{col 67}= {res}    0.2635
{txt}{col 51}Adj R-squared{col 67}= {res}    0.0595
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0888
{txt}{col 1}Number of clusters ({res}district_fixed{txt}) {col 30}= {res}        76{txt}{col 51}Root MSE{col 67}= {res}    1.7151

{txt}{ralign 78:(Std. Err. adjusted for {res:76} clusters in district_fixed)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}cum_lncoun~e{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}inter {c |}{col 14}{res}{space 2} .3754897{col 26}{space 2} .2365488{col 37}{space 1}    1.59{col 46}{space 3}0.117{col 54}{space 4}-.0957397{col 67}{space 3} .8467191
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

Absorbed degrees of freedom:
{hline 13}{c TT}{hline 49}{c TRC}
 Absorbed FE {c |}  Num. Coefs.  =   Categories  -   Redundant     {c |} 
{hline 13}{c +}{hline 49}{c RT}
 state_fixed {c |}           17              17              0     {c |} 
        year {c |}            1               2              1     {c |} 
{hline 13}{c BT}{hline 49}{c BRC}
{res}
{txt}{inp}{title:Stage: ols}

{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}        84
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}     75{txt}){col 67}= {res}      0.03
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.8660
{txt}{col 51}R-squared{col 67}= {res}    0.2430
{txt}{col 51}Adj R-squared{col 67}= {res}    0.0334
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0005
{txt}{col 1}Number of clusters ({res}district_fixed{txt}) {col 30}= {res}        76{txt}{col 51}Root MSE{col 67}= {res}    0.4046

{txt}{ralign 85:(Std. Err. adjusted for {res:76} clusters in district_fixed)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}        ind_turnout{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
cum_lncount_turbine {c |}{col 21}{res}{space 2} .0050032{col 33}{space 2} .0295401{col 44}{space 1}    0.17{col 53}{space 3}0.866{col 61}{space 4}-.0538436{col 74}{space 3}   .06385
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

Absorbed degrees of freedom:
{hline 20}{c TT}{hline 49}{c TRC}
        Absorbed FE {c |}  Num. Coefs.  =   Categories  -   Redundant     {c |} 
{hline 20}{c +}{hline 49}{c RT}
        state_fixed {c |}           17              17              0     {c |} 
               year {c |}            1               2              1     {c |} 
{hline 20}{c BT}{hline 49}{c BRC}
{res}
{txt}{inp}{title:Stage: reduced}

{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}        84
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}     75{txt}){col 67}= {res}      0.86
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.3568
{txt}{col 51}R-squared{col 67}= {res}    0.2583
{txt}{col 51}Adj R-squared{col 67}= {res}    0.0529
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0206
{txt}{col 1}Number of clusters ({res}district_fixed{txt}) {col 30}= {res}        76{txt}{col 51}Root MSE{col 67}= {res}    0.4005

{txt}{ralign 78:(Std. Err. adjusted for {res:76} clusters in district_fixed)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1} ind_turnout{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}inter {c |}{col 14}{res}{space 2} .0407134{col 26}{space 2} .0439096{col 37}{space 1}    0.93{col 46}{space 3}0.357{col 54}{space 4}-.0467589{col 67}{space 3} .1281858
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

Absorbed degrees of freedom:
{hline 13}{c TT}{hline 49}{c TRC}
 Absorbed FE {c |}  Num. Coefs.  =   Categories  -   Redundant     {c |} 
{hline 13}{c +}{hline 49}{c RT}
 state_fixed {c |}           17              17              0     {c |} 
        year {c |}            1               2              1     {c |} 
{hline 13}{c BT}{hline 49}{c BRC}
{res}
{txt}{inp}{title:Stage: iv}


{txt}Summary results for first-stage regressions
{hline 43}

{col 44}{help ivreg2##swstats:(Underid)}{col 65}{help ivreg2##swstats:(Weak id)}
Variable     |{col 16}{help ivreg2##swstats:F}({res}{col 17}  1{txt},{res}    75{txt})  P-val{col 37}|{col 39}{help ivreg2##swstats:SW Chi-sq}({res}  1{txt}) P-val{col 60}|{col 62}{help ivreg2##swstats:SW F}({res}{col 67}  1{txt},{res}    75{txt})
{res}cum_lncount_{col 14}{txt}|{col 18}{res}    2.52{col 28}  0.1166{col 37}{txt}|{col 42}{res}    3.26{col 51}  0.0710{col 60}{txt}|{col 65}{res}    2.52

{txt}NB: first-stage test statistics cluster-robust

Stock-Yogo weak ID F test critical values for single endogenous regressor:
{res}{txt}{col 36}10% maximal IV size{res}{col 67} 16.38
{txt}{col 36}15% maximal IV size{res}{col 67}  8.96
{txt}{col 36}20% maximal IV size{res}{col 67}  6.66
{txt}{col 36}25% maximal IV size{res}{col 67}  5.53
{txt}Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for i.i.d. errors only.

{help ivreg2##idtest:Underidentification test}
Ho: matrix of reduced form coefficients has rank=K1-1 (underidentified)
Ha: matrix has rank=K1 (identified)
{res}Kleibergen-Paap rk LM statistic{txt}{col 42}Chi-sq({res}1{txt})={res}2.22   {col 61}{txt}P-val={res}0.1360

{help ivreg2##widtest:Weak identification test}
{txt}Ho: equation is weakly identified
{res}Cragg-Donald Wald F statistic{col 65}    6.34
Kleibergen-Paap Wald rk F statistic{col 65}    2.52

{txt}Stock-Yogo weak ID test critical values for K1=1 and L1=1:
{res}{txt}{col 36}10% maximal IV size{res}{col 67} 16.38
{txt}{col 36}15% maximal IV size{res}{col 67}  8.96
{txt}{col 36}20% maximal IV size{res}{col 67}  6.66
{txt}{col 36}25% maximal IV size{res}{col 67}  5.53
{txt}Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.

{help ivreg2##wirobust:Weak-instrument-robust inference}
Tests of joint significance of endogenous regressors B1 in main equation
Ho: B1=0 and orthogonality conditions are valid
{res}Anderson-Rubin Wald test{txt}{col 36}F({res}1{txt},{res}75{txt})={col 49}{res}   0.86{col 61}{txt}P-val={res}0.3568
Anderson-Rubin Wald test{txt}{col 36}Chi-sq({res}1{txt})={col 49}{res}   1.11{col 61}{txt}P-val={res}0.2916
Stock-Wright LM S statistic{txt}{col 36}Chi-sq({res}1{txt})={col 49}{res}   1.48{col 61}{txt}P-val={res}0.2245

{txt}NB: Underidentification, weak identification and weak-identification-robust
    test statistics cluster-robust

Number of clusters             N_clust  = {res}        76
{txt}Number of observations               N  = {res}        84
{txt}Number of regressors                 K  = {res}         1
{txt}Number of endogenous regressors      K1 = {res}         1
{txt}Number of instruments                L  = {res}         1
{txt}Number of excluded instruments       L1 = {res}         1

{txt}HDFE IV (2SLS) estimation
{hline 25}

Estimates efficient for homoskedasticity only
Statistics robust to heteroskedasticity and clustering on district_fixed

Number of clusters (district_fixed) = {col 33}{res}    76{txt}{col 55}Number of obs = {res}      84
{txt}{col 55}F(  1,    75) = {res}    0.69
{txt}{col 55}Prob > F      = {res}  0.4074
{txt}Total (centered) SS     = {res} 10.64639115{txt}{col 55}Centered R2   = {res}  0.0834
{txt}Total (uncentered) SS   = {res} 10.64639115{txt}{col 55}Uncentered R2 = {res}       .
{txt}Residual SS             = {res} 12.88582917{txt}{col 55}Root MSE      = {res}   .4452

{txt}{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}        ind_turnout{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
cum_lncount_turbine {c |}{col 21}{res}{space 2} .1084276{col 33}{space 2} .1301378{col 44}{space 1}    0.83{col 53}{space 3}0.407{col 61}{space 4}-.1508201{col 74}{space 3} .3676753
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{help ivreg2##idtest:Underidentification test} (Kleibergen-Paap rk LM statistic):{res}{col 71}   2.223
{txt}{col 52}Chi-sq({res}1{txt}) P-val =  {res}{col 73}0.1360
{txt}{hline 78}
{help ivreg2##widtest:Weak identification test} (Cragg-Donald Wald F statistic):{res}{col 71}   6.338
{txt}                         (Kleibergen-Paap rk Wald F statistic):{res}{col 71}   2.520
{txt}Stock-Yogo weak ID test critical values:{res}{txt}{col 42}10% maximal IV size{res}{col 73} 16.38
{txt}{col 42}15% maximal IV size{res}{col 73}  8.96
{txt}{col 42}20% maximal IV size{res}{col 73}  6.66
{txt}{col 42}25% maximal IV size{res}{col 73}  5.53
{txt}Source: Stock-Yogo (2005).  Reproduced by permission.
NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors.
{hline 78}
{help ivreg2##overidtests:Hansen J statistic} (overidentification test of all instruments):{res}{col 71}   0.000
{txt}{col 50}(equation exactly identified)
{hline 78}
Instrumented:{col 23}cum_lncount_turbine
Excluded instruments:{col 23}inter
{hline 78}

Absorbed degrees of freedom:
{hline 20}{c TT}{hline 49}{c TRC}
        Absorbed FE {c |}  Num. Coefs.  =   Categories  -   Redundant     {c |} 
{hline 20}{c +}{hline 49}{c RT}
        state_fixed {c |}           17              17              0     {c |} 
               year {c |}            1               2              1     {c |} 
{hline 20}{c BT}{hline 49}{c BRC}
{res}{txt}(results {stata estimates replay reghdfe_first1:reghdfe_first1} are active now)
(results {stata estimates replay reghdfe_ols:reghdfe_ols} are active now)
(results {stata estimates replay reghdfe_reduced:reghdfe_reduced} are active now)

{com}. 
. *----------------- Export LaTeX tables - Turnout by party ID ----------------*
. cd "$rootDir/$resultDir/Tables"
{res}/Users/AliceZhang/Dropbox/Research_Columbia/Renewables Voting (Urpelainen Zhang)/JOP/UZ_JOP2021_Replication/Results/Tables
{txt}
{com}. 
. * First stage
. esttab dem_lncapacity_first dem_lncount_first rep_lncapacity_first rep_lncount_first ///
>                 ind_lncapacity_first ind_lncount_first using TableA19.tex, booktabs replace ///
>                 refcat(inter "\emph{c -(}Panel A: First stage{c )-}", nolabel) ///
>                 b(%9.3f) se noconstant noobs nonotes star(* 0.10 ** 0.05 *** 0.01) ///
>                 varlabels(inter "Mean wind potential * time") varwidth(20) modelwidth(10) ///
>                 mtitles("Model" "Model" "Model" "Model" "Model" "Model") ///
>                 mgroups("Democratic Turnout" "Republican Turnout" "Independent Turnout", pattern(1 0 1 0 1 0) prefix(\multicolumn{c -(}@span{c )-}{c -(}c{c )-}{c -(}) suffix({c )-}) span erepeat(\cmidrule(lr){c -(}@span{c )-})) ///
>                 width(\hsize)
{res}{txt}(output written to {browse  `"TableA19.tex"'})

{com}.                 
.         
. * IV
. esttab dem_lncapacity_iv dem_lncount_iv rep_lncapacity_iv rep_lncount_iv ///
>                 ind_lncapacity_iv ind_lncount_iv using TableA19.tex, booktabs append ///
>                 refcat(cum_lncapacity_turbine "\emph{c -(}Panel B: IV{c )-}", nolabel) ///
>                 nomtitles se noconstant nonotes legend nonumbers collabels(none) star(* 0.10 ** 0.05 *** 0.01) ///
>                 b(%9.3f) stats(N N_clust r2, labels("Observations" "Districts" "\(R^{c -(}2{c )-}\)") fmt(0 0 2 2)) ///
>                 varlabels(cum_lncapacity_turbine "log(Cumulative capacity+1)" cum_lncount_turbine "log(Cumulative count+1)") varwidth(27) modelwidth(13) ///
>                 width(\hsize)
{res}{txt}(output written to {browse  `"TableA19.tex"'})

{com}.                 
. 
. 
. 
. ** Close log file
. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}/Users/AliceZhang/Dropbox/Research_Columbia/Renewables Voting (Urpelainen Zhang)/JOP/UZ_JOP2021_Replication/Analysis/logSTATA/006_analysis_turnout.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res} 6 Nov 2021, 20:34:05
{txt}{.-}
{smcl}
{txt}{sf}{ul off}